Shunting Yard Algorithm